Integrand size = 23, antiderivative size = 94 \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=-\frac {2 x^2 (A b-2 a B-(b B-2 A c) x)}{3 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^{3/2}}+\frac {8 (A b-2 a B) (2 a+b x)}{3 \left (b^2-4 a c\right )^2 \sqrt {a+b x+c x^2}} \]
-2/3*x^2*(A*b-2*B*a-(-2*A*c+B*b)*x)/(-4*a*c+b^2)/(c*x^2+b*x+a)^(3/2)+8/3*( A*b-2*B*a)*(b*x+2*a)/(-4*a*c+b^2)^2/(c*x^2+b*x+a)^(1/2)
Time = 0.87 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.17 \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=\frac {2 \left (-16 a^3 B+b^2 x^2 (3 A b+b B x+2 A c x)+8 a^2 (A b-3 B x (b+c x))+2 a x \left (-3 b B x (b+2 c x)+A \left (6 b^2+6 b c x+4 c^2 x^2\right )\right )\right )}{3 \left (b^2-4 a c\right )^2 (a+x (b+c x))^{3/2}} \]
(2*(-16*a^3*B + b^2*x^2*(3*A*b + b*B*x + 2*A*c*x) + 8*a^2*(A*b - 3*B*x*(b + c*x)) + 2*a*x*(-3*b*B*x*(b + 2*c*x) + A*(6*b^2 + 6*b*c*x + 4*c^2*x^2)))) /(3*(b^2 - 4*a*c)^2*(a + x*(b + c*x))^(3/2))
Time = 0.23 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {1227, 1158}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx\) |
\(\Big \downarrow \) 1227 |
\(\displaystyle \frac {4 (A b-2 a B) \int \frac {x}{\left (c x^2+b x+a\right )^{3/2}}dx}{3 \left (b^2-4 a c\right )}-\frac {2 x^2 (-2 a B-x (b B-2 A c)+A b)}{3 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^{3/2}}\) |
\(\Big \downarrow \) 1158 |
\(\displaystyle \frac {8 (2 a+b x) (A b-2 a B)}{3 \left (b^2-4 a c\right )^2 \sqrt {a+b x+c x^2}}-\frac {2 x^2 (-2 a B-x (b B-2 A c)+A b)}{3 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^{3/2}}\) |
(-2*x^2*(A*b - 2*a*B - (b*B - 2*A*c)*x))/(3*(b^2 - 4*a*c)*(a + b*x + c*x^2 )^(3/2)) + (8*(A*b - 2*a*B)*(2*a + b*x))/(3*(b^2 - 4*a*c)^2*Sqrt[a + b*x + c*x^2])
3.10.72.3.1 Defintions of rubi rules used
Int[((d_.) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(3/2), x_Symbo l] :> Simp[-2*((b*d - 2*a*e + (2*c*d - b*e)*x)/((b^2 - 4*a*c)*Sqrt[a + b*x + c*x^2])), x] /; FreeQ[{a, b, c, d, e}, x]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c _.)*(x_)^2)^(p_), x_Symbol] :> Simp[(d + e*x)^m*(a + b*x + c*x^2)^(p + 1)*( (b*f - 2*a*g + (2*c*f - b*g)*x)/((p + 1)*(b^2 - 4*a*c))), x] - Simp[m*((b*( e*f + d*g) - 2*(c*d*f + a*e*g))/((p + 1)*(b^2 - 4*a*c))) Int[(d + e*x)^(m - 1)*(a + b*x + c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && EqQ[Simplify[m + 2*p + 3], 0] && LtQ[p, -1]
Time = 0.52 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.40
method | result | size |
trager | \(\frac {\frac {16}{3} a A \,c^{2} x^{3}+\frac {4}{3} x^{3} A \,b^{2} c -8 B a b c \,x^{3}+\frac {2}{3} x^{3} B \,b^{3}+8 A a b c \,x^{2}+2 A \,b^{3} x^{2}-16 a^{2} B c \,x^{2}-4 B \,x^{2} a \,b^{2}+8 A x a \,b^{2}-16 B x \,a^{2} b +\frac {16}{3} A \,a^{2} b -\frac {32}{3} B \,a^{3}}{\left (4 a c -b^{2}\right )^{2} \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}\) | \(132\) |
gosper | \(\frac {\frac {16}{3} a A \,c^{2} x^{3}+\frac {4}{3} x^{3} A \,b^{2} c -8 B a b c \,x^{3}+\frac {2}{3} x^{3} B \,b^{3}+8 A a b c \,x^{2}+2 A \,b^{3} x^{2}-16 a^{2} B c \,x^{2}-4 B \,x^{2} a \,b^{2}+8 A x a \,b^{2}-16 B x \,a^{2} b +\frac {16}{3} A \,a^{2} b -\frac {32}{3} B \,a^{3}}{\left (c \,x^{2}+b x +a \right )^{\frac {3}{2}} \left (16 a^{2} c^{2}-8 a \,b^{2} c +b^{4}\right )}\) | \(141\) |
default | \(B \left (-\frac {x^{2}}{c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {b \left (-\frac {x}{2 c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}-\frac {b \left (-\frac {1}{3 c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}-\frac {b \left (\frac {\frac {4 c x}{3}+\frac {2 b}{3}}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {16 c \left (2 c x +b \right )}{3 \left (4 a c -b^{2}\right )^{2} \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}\right )}{4 c}+\frac {a \left (\frac {\frac {4 c x}{3}+\frac {2 b}{3}}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {16 c \left (2 c x +b \right )}{3 \left (4 a c -b^{2}\right )^{2} \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}\right )}{2 c}+\frac {2 a \left (-\frac {1}{3 c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}-\frac {b \left (\frac {\frac {4 c x}{3}+\frac {2 b}{3}}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {16 c \left (2 c x +b \right )}{3 \left (4 a c -b^{2}\right )^{2} \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}\right )}{c}\right )+A \left (-\frac {x}{2 c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}-\frac {b \left (-\frac {1}{3 c \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}-\frac {b \left (\frac {\frac {4 c x}{3}+\frac {2 b}{3}}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {16 c \left (2 c x +b \right )}{3 \left (4 a c -b^{2}\right )^{2} \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}\right )}{4 c}+\frac {a \left (\frac {\frac {4 c x}{3}+\frac {2 b}{3}}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}}}+\frac {16 c \left (2 c x +b \right )}{3 \left (4 a c -b^{2}\right )^{2} \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}\right )\) | \(503\) |
2/3*(8*A*a*c^2*x^3+2*A*b^2*c*x^3-12*B*a*b*c*x^3+B*b^3*x^3+12*A*a*b*c*x^2+3 *A*b^3*x^2-24*B*a^2*c*x^2-6*B*a*b^2*x^2+12*A*a*b^2*x-24*B*a^2*b*x+8*A*a^2* b-16*B*a^3)/(4*a*c-b^2)^2/(c*x^2+b*x+a)^(3/2)
Leaf count of result is larger than twice the leaf count of optimal. 248 vs. \(2 (87) = 174\).
Time = 0.74 (sec) , antiderivative size = 248, normalized size of antiderivative = 2.64 \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=-\frac {2 \, {\left (16 \, B a^{3} - 8 \, A a^{2} b - {\left (B b^{3} + 8 \, A a c^{2} - 2 \, {\left (6 \, B a b - A b^{2}\right )} c\right )} x^{3} + 3 \, {\left (2 \, B a b^{2} - A b^{3} + 4 \, {\left (2 \, B a^{2} - A a b\right )} c\right )} x^{2} + 12 \, {\left (2 \, B a^{2} b - A a b^{2}\right )} x\right )} \sqrt {c x^{2} + b x + a}}{3 \, {\left (a^{2} b^{4} - 8 \, a^{3} b^{2} c + 16 \, a^{4} c^{2} + {\left (b^{4} c^{2} - 8 \, a b^{2} c^{3} + 16 \, a^{2} c^{4}\right )} x^{4} + 2 \, {\left (b^{5} c - 8 \, a b^{3} c^{2} + 16 \, a^{2} b c^{3}\right )} x^{3} + {\left (b^{6} - 6 \, a b^{4} c + 32 \, a^{3} c^{3}\right )} x^{2} + 2 \, {\left (a b^{5} - 8 \, a^{2} b^{3} c + 16 \, a^{3} b c^{2}\right )} x\right )}} \]
-2/3*(16*B*a^3 - 8*A*a^2*b - (B*b^3 + 8*A*a*c^2 - 2*(6*B*a*b - A*b^2)*c)*x ^3 + 3*(2*B*a*b^2 - A*b^3 + 4*(2*B*a^2 - A*a*b)*c)*x^2 + 12*(2*B*a^2*b - A *a*b^2)*x)*sqrt(c*x^2 + b*x + a)/(a^2*b^4 - 8*a^3*b^2*c + 16*a^4*c^2 + (b^ 4*c^2 - 8*a*b^2*c^3 + 16*a^2*c^4)*x^4 + 2*(b^5*c - 8*a*b^3*c^2 + 16*a^2*b* c^3)*x^3 + (b^6 - 6*a*b^4*c + 32*a^3*c^3)*x^2 + 2*(a*b^5 - 8*a^2*b^3*c + 1 6*a^3*b*c^2)*x)
Timed out. \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=\text {Timed out} \]
Exception generated. \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=\text {Exception raised: ValueError} \]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` for more deta
Leaf count of result is larger than twice the leaf count of optimal. 195 vs. \(2 (87) = 174\).
Time = 0.29 (sec) , antiderivative size = 195, normalized size of antiderivative = 2.07 \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=\frac {2 \, {\left ({\left ({\left (\frac {{\left (B b^{3} - 12 \, B a b c + 2 \, A b^{2} c + 8 \, A a c^{2}\right )} x}{b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}} - \frac {3 \, {\left (2 \, B a b^{2} - A b^{3} + 8 \, B a^{2} c - 4 \, A a b c\right )}}{b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}}\right )} x - \frac {12 \, {\left (2 \, B a^{2} b - A a b^{2}\right )}}{b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}}\right )} x - \frac {8 \, {\left (2 \, B a^{3} - A a^{2} b\right )}}{b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}}\right )}}{3 \, {\left (c x^{2} + b x + a\right )}^{\frac {3}{2}}} \]
2/3*((((B*b^3 - 12*B*a*b*c + 2*A*b^2*c + 8*A*a*c^2)*x/(b^4 - 8*a*b^2*c + 1 6*a^2*c^2) - 3*(2*B*a*b^2 - A*b^3 + 8*B*a^2*c - 4*A*a*b*c)/(b^4 - 8*a*b^2* c + 16*a^2*c^2))*x - 12*(2*B*a^2*b - A*a*b^2)/(b^4 - 8*a*b^2*c + 16*a^2*c^ 2))*x - 8*(2*B*a^3 - A*a^2*b)/(b^4 - 8*a*b^2*c + 16*a^2*c^2))/(c*x^2 + b*x + a)^(3/2)
Time = 10.60 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.39 \[ \int \frac {x^2 (A+B x)}{\left (a+b x+c x^2\right )^{5/2}} \, dx=\frac {2\,\left (-16\,B\,a^3-24\,B\,a^2\,b\,x+8\,A\,a^2\,b-24\,B\,a^2\,c\,x^2-6\,B\,a\,b^2\,x^2+12\,A\,a\,b^2\,x-12\,B\,a\,b\,c\,x^3+12\,A\,a\,b\,c\,x^2+8\,A\,a\,c^2\,x^3+B\,b^3\,x^3+3\,A\,b^3\,x^2+2\,A\,b^2\,c\,x^3\right )}{3\,{\left (4\,a\,c-b^2\right )}^2\,{\left (c\,x^2+b\,x+a\right )}^{3/2}} \]